/**
 * @author Bernhard Denner
 * @author Maximilian Csuk
 * @author Konrad Paumann
 */
public class Laptop extends Computer {
	private double screenSize;
	private int batteryLife;
	
	public Laptop(int RAMSize, int diskSize, int programRuntime, double screenSize, 
					int batteryLife) {
		super(RAMSize, diskSize, programRuntime);
		this.batteryLife = batteryLife;
		this.screenSize = screenSize;
	}
	/**
	 * Gets the screen size.
	 */
	public double getScreenSize() {
		return screenSize;
	}
	/**
	 * Gets maximum time on battery.
	 */
	public int getBatteryLife() {
		return batteryLife;
	}
	/**
	 * Returns a string representation of the laptop.
	 */
	public String toString() {
		return super.toString() + "| Screen: " + Double.toString(screenSize) +
			"\" | " + Integer.toString(batteryLife) + "min";
	}
	
}
